function InitQuery() {
    var optionsArray = [
        { value: 'https://www.bing.com/search?q=', text: 'Bing' },
        { value: 'https://www.google.com/search?q=', text: 'Google' },
        { value: 'https://www.baidu.com/s?wd=', text: 'Baidu' },
        { value: 'https://www.sogou.com/web?query=', text: 'Sogou' },
        {value:'https://yandex.eu/search/?text=',text:'yandex'}
    ];
    const selectElement = document.getElementById('select');
    selectElement.innerHTML = '';
    optionsArray.forEach(function (option) {
        var newOption = document.createElement('option');
        newOption.value = option.value;
        newOption.text = option.text;
        selectElement.appendChild(newOption);
    });
}
function query() {
    const url = document.getElementById('select').value;
    const inp = document.getElementById('input').value;
    window.open(url+inp)
}
window.onload = function () {
    InitQuery();
}